import request from '@/utils/request'

// 查询供应商列表
export function listSupport(query) {
  return request({
    url: '/drug/support/list',
    method: 'get',
    params: query
  })
}

// 查询供应商详细
export function getSupport(supportId) {
  return request({
    url: '/drug/support/' + supportId,
    method: 'get'
  })
}

// 新增供应商
export function addSupport(data) {
  return request({
    url: '/drug/support',
    method: 'post',
    data: data
  })
}

// 修改供应商
export function updateSupport(data) {
  return request({
    url: '/drug/support',
    method: 'put',
    data: data
  })
}

// 删除供应商
export function delSupport(supportId) {
  return request({
    url: '/drug/support/' + supportId,
    method: 'delete'
  })
}
